<extend name="Public:base" />
<block name="content">
	<form id="validation-form" method="post">
    <style type="text/css">
        li{
            list-style: none;;
        }
		table{
			text-align: center;
		}
		.mytableer tbody > tr > td{
			border: none;
		}
    </style>
	<volist name="info" id="vo">
		<if condition="($type eq 'info')">
			<a href="{:U('User/login')}/user_id/{$vo.user_id}" class="btn btn-sm btn-primary radius5 marginT10 marginB10"/>查看登录记录</a>
			<a href="{:U('User/Manage')}" class="btn btn-sm btn-primary radius5 marginT10 marginB10"/>返回</a>
		</if>
</form>
		<div class="table-responsive">
			<table class="table table-striped table-bordered table-hover" id="mytable">

				<tbody>
					<tr>
						<td class="col-sm-2">头像</td>
						<td align="left"><img src="{$vo.user_face}"/></td>
					</tr>
					<tr>
						<td>姓名</td>
						<td align="left"><php>if($vo['is_real']==0){echo $vo['user_name'];}elseif($vo['is_real']==1){echo $vo['id_name'];}else{echo $vo['user_name'];}</php></td>
					</tr>
					<tr>
						<td>账号</td>
						<td align="left">{$vo.phone}</td>
					</tr>
					<tr>
						<td>身份证</td>
						<td align="left">{$vo.id_num}</td>
					</tr>
					<tr>
						<td>邀请码</td>
						<td align="left">
							<php>
								if($type == 'info'){
								echo empty($vo['invite_code'])?暂无:$vo['invite_code'];
								}else{
								echo empty($vo['invite'])?暂无:$vo['invite'];
								}
							</php>
						</td>
					</tr>
				</tbody>
				</volist>
			</table>
		</div>



</block>
<block name="javascript">
<script>
$(function(){

	$("#search").click(function () {
        var url = $(this).attr('url');
        var query = $('.search-form').find('input,select').serialize();
        query = query.replace(/(&|^)(\w*?\d*?\-*?_*?)*?=?((?=&)|(?=$))/g, '');
        query = query.replace(/^&/g, '');
        if (url.indexOf('?') > 0) {
            url += '&' + query;
        } else {
            url += '?' + query;
        }
        window.location.href = url;
    });

});
</script>
</block>